import request from "@/utils/request";
//分页查询
export function listReservation(query) {
  return request({
    url: "/book/page",
    method: "get",
    params: query
  });
}
//添加预订
export function addReservation(data) {
  return request({
    url: "/book/addByWeb",
    method: "post",
    data: data
  });
}
//查询预订
export function searchReservation(bookId) {
  return request({
    url: "/book/" + bookId,
    method: "get"
  });
}
//办理入住时自动添加入住人信息
export function autoAddCusInfo(data) {
  return request({
    url: "/book/autoDoRegistered",
    method: "post",
    data: data
  });
}
